<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class CustomerServiceRequest extends MineFormRequest
{

    public function saveRules(): array
    {
        return [
            'name' => 'required|max:50',
            'account' => 'required|max:50',
            'password' => 'required|min:6'
        ];
    }

    public function detailRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function updateRules()
    {
        return [
            'id' => 'required',
            'assign_rules' => 'required',
            'work_time' => 'required'
        ];
    }

    public function deleteRules()
    {
        return [
            'ids' => 'required'
        ];
    }

    public function setRooms(): array
    {
        return [
            'id' => 'required'
        ];
    }
}